package com.wxsoft.java.reflection;

import java.awt.Button;

class SampleName{
	public static void main(String[] args){
		Button b = new Button();
		printName(b);
	}
	static void printName(Object o){
		Class c = o.getClass();
		String s = c.getName();
		System.out.println(s);
	}
}